/*
File:		BackstabBot.h
Author:		Ben Feldmann
Purpose:	Class to manage game BackstabBot enemies
*/

#pragma once

#include "Enemy.h"
#include "AnimationSystem.h"
#include "Animation.h"
class Player;

class BackstabBot : public Enemy 
{
private:
	int animationID;
	Animation stabAnimation[8];
	bool inRange;
	float damage;
	Player* target;
	int attackPlace;
	int maxHealth;
	int AttackSound;
	int WalkSound;
	int DeathSound;
	float BackAwayTimer;

public:
	BackstabBot();

	~BackstabBot();

	void Update(float elapsed);

	void Render();

	int GetMax() {return maxHealth;}

	bool CheckCollision(IEntity* base);

	void Attack();

	RECT GetRect();

	void SetAnimation(int id[8]);

	// Pure virtual method from IListener
	virtual void HandleEvent(Event* thisEvent);
};
